package com.xbongbong.admin.domain.entity;

import com.xbongbong.paas.toolbox.wrap.Entity;
import com.xbongbong.saas.domain.entity.WorkOrderTemplateEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author guohui.zhang
 * @Title: 工单模板类
 * @date 2020/3/1719:31
 */
@Getter
@Setter
@ToString
public class WorkOrderTemplateRetainEntity extends Entity {
    private static final long serialVersionUID = 757365230848433256L;
    /**
     * 主键id
     */
    private Long id;
    /**
     * 公司id
     */
    private String corpid;
    /**
     * 备份应用id
     */
    private Long retainAppId;
    /**
     * 原应用id
     */
    private Long sourceAppId;
    /**
     * 原来工单模板id
     */
    private Long sourceTemplateId;
    /**
     * 关联模板分类id
     */
    private Long categoryId;
    /**
     * 模板名称
     */
    private String name;
    /**
     * 模板简介
     */
    private String introduction;
    /**
     * 是否为自由指派 1是，0不是
     */
    private Integer isFree;
    /**
     * 抄送人
     */
    private String cc;
    /**
     * 是否开启 1开启，0关闭
     */
    private Integer enable;
    /**
     * 是否为默认，1为默认分类，0不是默认分类
     */
    private Integer isDefault;
    /**
     * 模板分配权限规则（部门，人员）
     */
    private String scopeRule;
    /**
     * 创建人ID
     */
    private String creatorId;
    /**
     * 创建人姓名
     */
    private String creatorName;
    /**
     * 最近修改人id
     */
    private String modifierId;
    /**
     * 最近修改人的姓名
     */
    private String modifierName;
    /**
     * 添加时间
     */
    private Long addTime;
    /**
     * 更新时间
     */
    private Long updateTime;
    /**
     * 删除标记
     */
    private Integer del;
    /**
     * 预计耗时
     */
    private Integer expectedTime;

    public WorkOrderTemplateRetainEntity() {
    }

    public WorkOrderTemplateRetainEntity(WorkOrderTemplateEntity workOrderTemplateEntity) {
        this.corpid = workOrderTemplateEntity.getCorpid();
        this.sourceAppId = workOrderTemplateEntity.getAppId();
        this.sourceTemplateId = workOrderTemplateEntity.getId();
        this.categoryId = workOrderTemplateEntity.getCategoryId();
        this.name = workOrderTemplateEntity.getName();
        this.introduction =workOrderTemplateEntity.getIntroduction();
        this.isFree = workOrderTemplateEntity.getIsFree();
        this.cc = workOrderTemplateEntity.getCc();
        this.enable = workOrderTemplateEntity.getEnable();
        this.isDefault = workOrderTemplateEntity.getIsDefault();
        this.scopeRule = workOrderTemplateEntity.getScopeRule();
        this.creatorId = workOrderTemplateEntity.getCreatorId();
        this.creatorName = workOrderTemplateEntity.getCreatorName();
        this.modifierId = workOrderTemplateEntity.getModifierId();
        this.modifierName = workOrderTemplateEntity.getModifierName();
        this.addTime = workOrderTemplateEntity.getAddTime();
        this.updateTime = workOrderTemplateEntity.getUpdateTime();
        this.del = workOrderTemplateEntity.getDel();
        this.expectedTime = workOrderTemplateEntity.getExpectedTime();
    }

}
